<!DOCTYPE html>
<html>
<head>
    <title>声撩召集令</title>
    <meta name="viewport"
          content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <meta charset="utf-8">
    <link rel="stylesheet" type="text/css" href="static/aui.css">
    <link rel="stylesheet" type="text/css" href="static/reg.css?v=1">
</head>


<body style="height: 42rem">
<div class="all_img"></div>
<img class="user_img" src="" alt="">
<div class="take_button" id="clickAward">
    <img src="static/images/take_button.png">
</div>

<script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
<script
    type="text/javascript"> document.write('<script type="text/javascript" src="static/pub.js?time=' + new Date().getTime() + '"><' + '/' + 'script>');</script>

<script type="text/javascript">
    var user_id = getUrlParam('user_id');

    $("#clickAward").click(function () {
        window.location.href = shareUrl + "/wx_html/reg.html?user_id=" + user_id;
    });
    $(document).ready(function () {
        $.ajax({
            url: shareUrl + "/invite/getShareConfig",//要请求的服务器url
            data: {
                user_id: user_id,
            },
            type: "POST", //请求方式为POST
            dataType: "json",   //服务器返回的数据是什么类型
            success: function (result) {  //这个方法会在服务器执行成功是被调用 ，参数result就是服务器返回的值(现在是json类型)
                if (result.code == 0) {
                    $(".user_img").attr('src', result.data.u_img);
                    $("#nickname").html(result.data.nickname)
                    $("#share_date").html(result.data.share_date)

                } else {

                }
            }
        });
    });


    function getUrlParam(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
        var r = window.location.search.substr(1).match(reg);  //匹配目标参数
        if (r != null) return unescape(r[2]);
        return null; //返回参数值
    }
</script>

</body>
</html>
